#!/bin/bash

error_exit() {
    echo "$1"
    exit 1
}

curl --silent --max-time 2 https://172.22.69.238:6443/ -k > /dev/null || error_exit "Error GET https://172.22.69.238:6443/"
if ip addr | grep -q 172.22.76.113; then
    curl --silent --max-time 2 https://172.22.76.113:6443/ -k > /dev/null || error_exit "Error GET https://172.22.76.113:6443/"
fi
